package avicit.bdp.dms.prm.utils;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 *
 *
 * @author xugb
 * @date 2021/11/19 9:48
 */
public class Stopper {

    private static AtomicBoolean signal = new AtomicBoolean(false);

    public static final boolean isStopped(){
        return signal.get();
    }

    public static final boolean isRunning(){
        return !signal.get();
    }

    public static final void stop(){
        signal.set(true);
    }
}